{section name=bar loop=$foo}{$foo[bar.index]}{sectionelse} else {/section}